The using directive makes some name qualification optional Using指令使某些名稱限定可選:
The most commonly used directive is the 最常用的指令為
Using directives that will enable the identifier to be resolved 指令的列表,這些指令使該標識符可以被解析。
Using directives and references Using指令和引用
Using directive has two uses 指令有兩個用途:
You can reference an assembly directly from your code using the using directive , such as 您可以使用# using指令直接從代碼引用程序集,如
Using directive to use the types in a namespace without having to specify the namespace 指令,以便在命名空間中使用類型而不必指定命名空間。
Window , type a comment in the comment box to explain the nature of your changes such as " added using directive " and why you made them for example , " to enable calls to the directory class " 在“掛起的更改”窗口中,在“注釋”框中鍵入注釋以解釋更改的性質(如“已添加using指令” )和做出更改的原因(如“啟用對directory類的調用” ) 。